FROM debian

MAINTAINER ZYi Guo
MAINTAINER mlzxgzy@gmail.com

# 标记端口
EXPOSE 3632
# 安装vsftpd
RUN sed -i "s/http:\/\/deb.debian.org/http:\/\/mirrors.tuna.tsinghua.edu.cn/g" /etc/apt/sources.list \
 && apt update \
 && apt install -y --no-install-recommends vsftpd \
 && apt clean all \
 && rm -rf /var/lib/apt \
RUN echo "" > /etc/vsftpd.conf \
 && echo "listen=YES" >> /etc/vsftpd.conf \
 && echo "anonymous_enable=YES" >> /etc/vsftpd.conf \
 && echo "anon_root=/anon" >> /etc/vsftpd.conf \
 && mkdir /anon \
 && mkdir -p /var/run/vsftpd/empty
# 复制Flag至目标位置
COPY flag* /anon/
CMD /usr/sbin/vsftpd